/**
 * app record 数据记录相关的http api
 */
import {http} from '@/api/service.js';

export const addRecord=(data)=>{
	return http.post('/record/insertRecord',data);
}

export const getUnfinishedRecord=(params)=>{
	return http.get("/record/getUnfinishedRecord",{params});
}

export const uptUnfinishedRecord=(data)=>{
	return http.post('/record/uptUnfinishedRecord',data);
}

export const getRecordByRecordID=(params)=>{
	return http.request({
		method:'GET',
		url:'/record/getRecordByRecordID',
		params:params
	})
}

export const uptRecordByRecordID=(data)=>{
	return http.request({
		method:'POST',
		url:'/record/uptRecordByRecordID',
		data:data
	})
}

export const delRecordByRecordID=(data)=>{
	return http.request({
		method:'POST',
		url:'/record/delRecordByRecordID',
		data:data
	})
}